﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="browsem.aspx.vb" Inherits="bookmeetprototype.browsem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Browse BookMeet Users</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!--Browse Members Section-->
    <ul class="breadcrumb">
    <li><a id="A1" runat="server" href="~/Default.aspx">Home</a> <span class="divider">/</span></li>
    <li><a id="A2" runat="server" href="~/discover.aspx">Discover</a> <span class="divider">/</span></li>
    <li class="active">Browse Members</li>
    </ul>
    <p>
        <asp:Repeater ID="searchResults" runat="server" onitemdatabound="searchResults_ItemDataBound">
        <ItemTemplate><hr />
        <div id="wrapper">
    <div id="first">
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "showuserprofile.aspx?ID=" + Eval("ID").ToString() %>' ><asp:Image ID="Image1" CssClass="img-polaroid" Width="170px" NullImageUrl="~/img/no_image.jpg" runat="server" ImageUrl='<%# "~/Account/" + Eval("AvatarURL").toString() %>' /></asp:HyperLink>
        
    </div>
    <div id="second">
        <strong><asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "showuserprofile.aspx?ID=" + Eval("ID").ToString() %>' ><%#Container.DataItem("TravellerName")%></asp:HyperLink></strong>,
        <i><%#Container.DataItem("Location")%></i>, United Kingdom
        <p><small><%#Container.DataItem("Description")%></small></p>
        </div>
   </div>
   <hr />
        </ItemTemplate>
    
        <FooterTemplate>
         <tr>
         <td>
         <asp:Label ID="lblEmptyData"
                Text="No results found." runat="server" Visible="false">
         </asp:Label>
         </td>
         </tr>
         </table>           
 </FooterTemplate>
        </asp:Repeater>
    </p>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBarContent" runat="server">
    <!--Advanced Search Parameters Sidebar-->
<h4>Search Options:</h4>
<h5>By Region:</h5>
    <p>
        <asp:DropDownList ID="dd_userlocation" runat="server">
            <asp:ListItem Value="London"></asp:ListItem>
            <asp:ListItem>South East</asp:ListItem>
            <asp:ListItem Value="North East"></asp:ListItem>
            <asp:ListItem>South</asp:ListItem>
            <asp:ListItem>East Anglia</asp:ListItem>
            <asp:ListItem>Midlands</asp:ListItem>
            <asp:ListItem>South Wales</asp:ListItem>
            <asp:ListItem>North Wales</asp:ListItem>
            <asp:ListItem>West Country</asp:ListItem>
        </asp:DropDownList>
    </p>
    <p>
    <asp:Button ID="submitregionsearch" runat="server" Text="Submit" />
    </p>
<h5>By Profession:</h5>

        <asp:DropDownList ID="profession" runat="server">
            <asp:ListItem>Marketing</asp:ListItem>
            <asp:ListItem>Banking</asp:ListItem>
            <asp:ListItem>Stock-Trader</asp:ListItem>
            <asp:ListItem>I.T</asp:ListItem>
            <asp:ListItem>Retail</asp:ListItem>
            <asp:ListItem>Cleaner</asp:ListItem>
            <asp:ListItem>Accountant</asp:ListItem>
            <asp:ListItem>Artist</asp:ListItem>
            <asp:ListItem>Designer</asp:ListItem>
            <asp:ListItem>Farmer</asp:ListItem>
            <asp:ListItem>Pub Landlord</asp:ListItem>
            <asp:ListItem>Customer Service</asp:ListItem>
            <asp:ListItem>Teacher</asp:ListItem>
        </asp:DropDownList>

    <br />
    <asp:Button ID="submitprofession" runat="server" Text="Submit" />

<h5>By Birthdate:</h5>
 
    <asp:TextBox ID="tb_age" runat="server" Height="22px" Width="107px"></asp:TextBox>
    <ajaxToolkit:CalendarExtender ID="tb_age_CalendarExtender" Format="dd/MM/yyyy" runat="server" 
        TargetControlID="tb_age">
    </ajaxToolkit:CalendarExtender>

    <asp:Button ID="submitbirthdatesearch" runat="server" Text="Search by Age" />

    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <h5>By Username:</h5>
    <asp:TextBox ID="other" runat="server"></asp:TextBox>
    <asp:Button ID="submitadvancedsearch" runat="server" 
        Text="Search by Username" />
</asp:Content>
